package hcn.mch.request;

import lombok.ToString;

import javax.persistence.Transient;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

/**
 *获取孕产妇访视名单入参
 **/
@ToString
@XmlRootElement(name = "MsgBody")
public class QueryMotherVisitFromMcsQo {

    /**
     * 访视机构代码
     */
    private String orgId;
    /**
     * 孕产妇姓名
     */
    private String name;
    /**
     * 分娩日期(开始)
     */
    private String startCheckTime;
    /**
     * 分娩日期（结束）
     */
    private String endCheckTime;
    private Integer pageSize;
    private Integer pageNo;


    @XmlElement(name = "VisitOrganization")
    public String getOrgId() {
        return orgId;
    }

    public void setOrgId(String orgId) {
        this.orgId = orgId;
    }
    @XmlElement(name = "Name")
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
    @XmlElement(name = "StartCheckTime")
    public String getStartCheckTime() {
        return startCheckTime;
    }

    public void setStartCheckTime(String startCheckTime) {
        this.startCheckTime = startCheckTime;
    }
    @XmlElement(name = "EndCheckTime")
    public String getEndCheckTime() {
        return endCheckTime;
    }

    public void setEndCheckTime(String endCheckTime) {
        this.endCheckTime = endCheckTime;
    }


    @Transient
    @XmlElement(name = "PageSize")
    public Integer getPageSize() {
        if(pageSize==null){
            return 20;
        }
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }
    @Transient
    @XmlElement(name = "PageNo")
    public Integer getPageNo() {
        if(pageNo==null){
            return 0;
        }
        return pageNo;
    }

    public void setPageNo(Integer pageNo) {
        this.pageNo = pageNo;
    }
}
